package com.ikkong.biz.model;

import org.apache.bval.constraints.NotEmpty;
import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.Table;
import com.ikkong.core.annotation.BindID;
import com.ikkong.core.model.BaseModel;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Generated by Blade.
 * 2016-11-13 17:05:51
 */
@Table(name = "tb_classes")
@BindID(name = "id")
@SuppressWarnings("serial")
public class Classes extends BaseModel {
    //  4
    private Integer id;
    //  12
    @Excel(name = "班级名称", isImportField = "true")
    @NotEmpty(message = "班级不能为空")
    private String class_name;

    // dict表grade类型 4
    @Excel(name = "年级", isImportField = "true",replace = { "初一_1", "初二_2","初三_3" })
    @NotEmpty(message = "班级不能为空")
    @Max(value = 3, message = "最大是3")
    @Min(value = 1, message = "最小是1")
    private Integer grade_id;

    // 学生人数 4
    private Integer stu_count;

    // 学生部门id 4
//    @Excel(name = "学生部门", isImportField = "true")
//    @NotNull(message = "学生部门不能为空")
    private Integer stu_dept_id;

    // 家长部门id 4
//    @Excel(name = "家长部门", isImportField = "true")
//    @NotNull(message = "家长部门不能为空")
    private Integer parent_dept_id;

    // 学生群聊 12
    private String stu_chat_id;

    // 家长群聊 12
    private String parent_chat_id;

    // 课任老师 -1
    private String teachers;

    // 是否毕业1未毕业2毕业 -6
    private Integer is_graduate;

    // 毕业年份 12
    private String graduate_year;

    //  93
    private java.util.Date ctime;

    //  93
    private java.util.Date utime;

    //  4
    private Integer version;

    //班主任
    private Integer head_teacher;

//        @AutoID
//        @SeqID(name = "SEQ_CLASSES")
    @AssignID
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    //
    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    // dict表grade类型
    public Integer getGrade_id() {
        return grade_id;
    }

    public void setGrade_id(Integer grade_id) {
        this.grade_id = grade_id;
    }

    // 学生人数
    public Integer getStu_count() {
        return stu_count;
    }

    public void setStu_count(Integer stu_count) {
        this.stu_count = stu_count;
    }

    // 学生部门id
    public Integer getStu_dept_id() {
        return stu_dept_id;
    }

    public void setStu_dept_id(Integer stu_dept_id) {
        this.stu_dept_id = stu_dept_id;
    }

    // 家长部门id
    public Integer getParent_dept_id() {
        return parent_dept_id;
    }

    public void setParent_dept_id(Integer parent_dept_id) {
        this.parent_dept_id = parent_dept_id;
    }

    // 学生群聊
    public String getStu_chat_id() {
        return stu_chat_id;
    }

    public void setStu_chat_id(String stu_chat_id) {
        this.stu_chat_id = stu_chat_id;
    }

    // 家长群聊
    public String getParent_chat_id() {
        return parent_chat_id;
    }

    public void setParent_chat_id(String parent_chat_id) {
        this.parent_chat_id = parent_chat_id;
    }

    // 课任老师
    public String getTeachers() {
        return teachers;
    }

    public void setTeachers(String teachers) {
        this.teachers = teachers;
    }

    // 是否毕业1未毕业2毕业
    public Integer getIs_graduate() {
        return is_graduate;
    }

    public void setIs_graduate(Integer is_graduate) {
        this.is_graduate = is_graduate;
    }

    // 毕业年份
    public String getGraduate_year() {
        return graduate_year;
    }

    public void setGraduate_year(String graduate_year) {
        this.graduate_year = graduate_year;
    }

    //
    public java.util.Date getCtime() {
        return ctime;
    }

    public void setCtime(java.util.Date ctime) {
        this.ctime = ctime;
    }

    //
    public java.util.Date getUtime() {
        return utime;
    }

    public void setUtime(java.util.Date utime) {
        this.utime = utime;
    }

    //
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getHead_teacher() {
        return head_teacher;
    }

    public void setHead_teacher(Integer head_teacher) {
        this.head_teacher = head_teacher;
    }
}
